package com.chtwm.yfsb.wangyi.util;

import org.springframework.util.StringUtils;

public class SessionUtil {
    public static final String ENVIRONMENT_CODE = "user_env";
    public static String getSessionAttr(String attr,String defultValue){
        Object object = RequestHolder.getSession(attr);
        return StringUtils.isEmpty(object) ? defultValue:object.toString();
    }
}
